﻿using Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DbFactory
{
    internal class PhoneFactory : BaseFactory<Phone>
    {
        static internal Phone ls;

        internal static void Create()
        {
            ls = Save(newPhone("15670889900", UserFactory.ls));

        }

        static Phone newPhone(string number, User user)
        {
            Phone phone = new Phone
            {
                Number = number,
                User = user
            };
            return phone;
        }
    }
}
